Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move from io/ioutil to io and os package #1298

Merged
merged 1 commit into from
Sep 26, 2021
Merged

refactor: move from io/ioutil to io and os package #1298

merged 1 commit into from
Sep 26, 2021

Conversation

Juneezee
Copy link

The io/ioutil package has been deprecated in Go 1.16 (See https://golang.org/doc/go1.16#ioutil). This PR replaces the existing io/ioutil functions with their new definitions in io and os packages.

The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Sep 26, 2021

Codecov Report

Merging #1298 (b1f6c32) into master (b25a9e5) will increase coverage by 0.10%.
The diff coverage is 40.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1298      +/-   ##
==========================================
+ Coverage   44.54%   44.64%   +0.10%     
==========================================
  Files         485      485              
  Lines       29534    29534              
==========================================
+ Hits        13156    13186      +30     
+ Misses      14967    14945      -22     
+ Partials     1411     1403       -8     
Impacted Files Coverage Δ
infra/conf/geodata/memconservative/cache.go 0.00% <0.00%> (ø)
main/confloader/external/external.go 6.97% <0.00%> (ø)
app/dns/nameserver_doh.go 68.05% <50.00%> (ø)
common/common.go 24.69% <50.00%> (ø)
common/drain/drainer.go 65.51% <100.00%> (ø)
testing/scenarios/common.go 74.13% <100.00%> (ø)
transport/internet/kcp/connection.go 72.37% <0.00%> (+0.55%) ⬆️
transport/internet/kcp/receiving.go 100.00% <0.00%> (+1.34%) ⬆️
proxy/freedom/freedom.go 49.00% <0.00%> (+4.00%) ⬆️
app/router/command/command.go 57.77% <0.00%> (+4.44%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b25a9e5...b1f6c32. Read the comment docs.

@kslr kslr merged commit deb9d08 into v2fly:master Sep 26, 2021
@kslr
Copy link
Contributor

kslr commented Sep 26, 2021

Thanks for your work.

xiaokangwang added a commit that referenced this pull request Sep 27, 2021
Author: Eng Zer Jun <[email protected]>
Date:   Mon Sep 27 00:56:31 2021 +0800

    refactor: move from io/ioutil to io and os package (#1298)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants